package com.example.service;

import com.example.User;
import org.springframework.stereotype.Component;


@Component
public class UserService implements IUserService{


    public UserService() {
        System.out.println("UserService() constructor invoke ....");
    }

    @Override
    public void addUser() {
        System.out.println("addUser() invoke ....");
    }

    @Override
    public User queryUser(Integer userId) {
        System.out.println("queryUser("+userId+") invoke ....");
        return new User();
    }

    public User queryUser(Integer userId,Boolean online){
        System.out.println("queryUser("+userId+","+online+") invoke ....");
        return new User();
    }
}
